﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using DAL;
namespace BLL
{
    public class Branch_BLL
    {
        public static Branch_DAL cls = new Branch_DAL();
        #region[Get-Data]
        public DataTable GetBranch()
        {
            return cls.GetBranch();
        }
        public DataTable GetBranchDetail_Edit(int id)
        {
            return cls.GetBranchDetail_Edit(id);
        }
        #endregion

        #region[Insert-Update-Delete]
        public static bool InsertBranch(ET.Branch_ET obj)
        {
            return cls.InsertBranch(obj);
        }
        public static bool UpdateBranch(ET.Branch_ET obj)
        {
            return cls.UpdateBranch(obj);
        }
        public static bool DeleteBranch(int id)
        {
            return cls.DeleteBranch(id);
        }
        #endregion

        #region[Search-Fillter]
        public DataTable Search(string keywords)
        {
            return cls.Search(keywords);
        }
        #endregion

        #region[ResetNumber]
        public static bool ResetNumber(string table, int num = 0)
        {
            return cls.ResetNumber(table, num);
        }
        #endregion
    }
}
